#!/usr/bin/env pyahont3

import os
"""
练习作业：05
1. 读写文件 



fp="./temp/temp.txt"

if not os.path.exists("./temp"):
    os.makedirs("./temp")

f=open(fp,"r+")
line=f.readline(4)
print("read:",line)


f=open(fp,"w+")
s=input("输入:")
f.writelines(s)
f.close()



print("Hello Worwd")
my_name=input("what is your name?")
print(f"你好,{my_name}")

fp="./temp/temp.txt"


f=open(fp,"r+")
line=f.readline(100)
print("你好:",line)

f=open(fp,"w+")
s=my_name
f.writelines(s)
f.close()
"""


fp="python3/study/base.txt"

f=open(fp,"r+")
line=f.readline(10000)
print("read:",line)


f=open(fp,"w+")
s=input("输入:")
f.writelines(s)
f.close()